cmake_minimum_required(VERSION 3.5)
project(test)

# 查找依赖的包
find_package(rclcpp REQUIRED)
find_package(interfaces REQUIRED)
find_package(std_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(mavros_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(Eigen3 REQUIRED)

# 添加可执行文件
add_executable(send_set_goal src/send_set_goal.cpp)

# 链接库
ament_target_dependencies(send_set_goal
  rclcpp
  interfaces
  std_msgs
  geometry_msgs
  mavros_msgs
  nav_msgs
  Eigen3
)

# 安装
install(TARGETS send_set_goal
  DESTINATION lib/${PROJECT_NAME}
)

ament_package()
